package com.yahoo.labs.snow;

import java.io.File;

public class ProblemInstanceFromDirectory extends ProblemInstanceFromFiles {

	/**
	 * Filename of file containing node costs.
	 * 
	 * One line per node, containing 2 tab-separated fields: node-id, cost.
	 */
	final static String FILENAME_COST = "node_cost.csv";

	/**
	 * Filename of file containing node compatibility.
	 * 
	 * One line per pair of nodes, containing 3 tab-separated fields: node1, node2, compatibility.
	 */
	final static String FILENAME_COMPAT = "node_compatibility.csv";

	/**
	 * Filename of file containing coverage attributes covered by each node.
	 * 
	 * One line per node, containing K+1 tab-separated fields: node, attributevalue1,
	 * attributevalue2, ..., attributevalueK
	 * 
	 */
	final static String FILENAME_COVER = "node_cover.csv";

	public ProblemInstanceFromDirectory(String dirName, long budget) {
		super(new File(dirName, FILENAME_COST), new File(dirName, FILENAME_COMPAT), new File(dirName, FILENAME_COVER), budget);
	}
}
